const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  name: state => state.user.userInfo.username, // 用户名
  userId: state => state.user.userInfo.userId // 用户ID
}

// 存在的意义：方便快捷读取状态，是所有状态的统一出口
export default getters
